package com.jk.smartelderlycare.interfaces;

import com.jk.smartelderlycare.dto.SysMenu;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @Description 添加描述
 * @Author hhk
 * @LastChangeDate 2024/11/6 16:18
 * @Version v1.0
 */
public interface SysMenuServiceApi {
    /** 
     * @description: 查询菜单集合信息
     * @param: [sysMenu]
     * @return: java.util.List<com.jk.smartelderlycare.dto.SysMenu>
     * @author hhk
     * @date: 2024/11/6 16:20
     */ 
    @PostMapping(value = "/sysMenu/findSysMenuList")
    public List<SysMenu> findSysMenuList(@RequestBody SysMenu sysMenu);
    /** 
     * @description: 通过用户id获取权限集合
     * @param: [userId]
     * @return: java.util.List<java.lang.String>
     * @author hhk
     * @date: 2024/11/6 16:23
     */ 
    @GetMapping(value = "/sysMenu/selectPermsByUserId")
    public List<String> selectPermsByUserId(@RequestParam(value = "userId") Long userId);
}
